<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0" />
<title>助学跟踪-总表</title>
<%@ include file="../common/_head_include.jsp" %>

<style>
select { margin:0px; padding:0px; }
span.clickable { margin: 0px 0px 0px 6px; }
#pagingNav span { margin:0px 3px 0px 3px; padding: 0px 3px 0px 3px; }
.clickable { cursor:pointer; }
</style>

</head>
<body>
<%@ include file="../common/_page_header.jsp" %>

<div id="g_content"><!-- do NOT change it. It's part of the global page structure. -->

<%@ include file="../common/_page_menubar.jsp" %>

<div id="g_workspace"><!-- do NOT change it. It's part of the global page structure. -->

<h3 style="display:inline">助学跟踪 - 总表</h3>
<span id="txtProjectPhase"></span>
<span id="bthSwitchProjectPhase" class="clickable">切换</span>
<span id="bthExtendFromPrevSemester" class="clickable">批量延续上学期资助</span>
<span id="bthAddAidRecord" class="clickable">手动延续上学期资助</span>
<span id="btnExport"  class="clickable">下载</span>

<input type="hidden" id="selectedProjectId" />
<input type="hidden" id="selectedSemesterId" />
<input type="hidden" id="page" />
<input type="hidden" id="limit" />
<br/><br/>
<select id="selectAidStatus"><option value ="" selected="selected">-资助进展-</option></select>
<select id="selectAidType"><option value ="" selected="selected">-资助类型-</option></select>
<select id="selectPairStatus"><option value ="" selected="selected">-募捐进展-</option></select>
<select id="selectReceiptStatus"><option value ="" selected="selected">-收据收取-</option></select>
<select id="selectSummarytatus"><option value ="" selected="selected">-小结收取-</option></select>
<select id="selectReceiptFeedback"><option value ="" selected="selected">-收据反馈-</option></select>
<select id="selectSummaryFeedback"><option value ="" selected="selected">-小结反馈-</option></select>
<input id="btnFilter" type="button" value="筛选"/>


<table id="tableAidRecords" class="simpleDataGrid">
<thead><tr><th>编号</th><th>姓名</th><th>性别</th><th>学校</th><th>年级</th><th>资助进展</th><th>资助金额</th><!--<th>打款</th>--><th>收据</th><th>小结</th><th>资助类型</th><th>资助人</th><th>募捐进展</th><th>收据反馈</th><th>小结反馈</th><th>志愿者</th><th>操作</th></tr></thead>
<tbody></tbody>
</table>
<br/>

<span id="txtCountSummary"></span>
<span>
	<input type="checkbox" name="selectAll" value="true" onclick="fnSelectAll(this)" />全选
	<input type="button" id="bthBatchUpdate" value="批量操作"/>
</span>
<span id="pagingNav" style="margin-left:30px;"></span>
<br/>

<p id="txtMessage"></p>
<br/>


<div id="aidDialog" title="更新资助跟踪状态" style="display:none;">
	<input type="hidden" id="id"/><br/>
	<label>学生：</label>
	<span id="studentInfo"></span><br/>
	<label>学校：</label>
	<input type="text" id="school" value="" /><br/>
	<label>年级：</label>
	<select id="grade"></select><br/>
	<label for="aidAmount">资助金额：</label>
	<input type="text" name="aidAmount" id="aidAmount">（每学期）<br/>
	<label for="aidStatus">资助进展：</label>
	<select name="aidStatus" id="aidStatus"></select><br/>
	<!--
	<label for="fundStatus">拨款状态：</label>
	<select name="fundStatus" id="fundStatus"></select><br/><br/>
	-->
	<label for="aidType">资助类型：</label>
	<select name="aidType" id="aidType"></select><br/>
	<label for="pairStatus">募捐进展：</label>
	<select name="pairStatus" id="pairStatus"></select><br/>

	<label for="sponsorId">资助人：</label>
	<select name="sponsorId" id="sponsorId">
		<option value="0">无结对资助人</option>
	</select><br/>
	<label for="volunteerId">志愿者</label>
	<select name="volunteerId" id="volunteerId">
		<option value="0">待定</option>
	</select><br/><br/>
	
	<label for="receiptStatus">学生收据：</label>
	<select name="receiptStatus" id="receiptStatus"></select><br/>
	<label for="receiptFeedbackStatus">收据反馈：</label>
	<select name="receiptFeedbackStatus" id="receiptFeedbackStatus"></select><br/><br/>
	
	<label for="summaryStatus">学期小结：</label>
	<select name="summaryStatus" id="summaryStatus"></select><br/>
	<label for="summaryFeedbackStatus">小结反馈：</label>
	<select name="summaryFeedbackStatus" id="summaryFeedbackStatus"></select><br/>
	<label for="remark">备注：</label>
	<input type="text" name="remark" id="remark" size="36"><br/>
</div>


<div id="addAidDialog" title="新增资助记录" style="display:none;">
	<br/>
	<label>学生：</label>
	<select id="student"></select><br/>
	<label>学期：</label>
	<select id="semester"></select><br/>
	<label>项目：</label>
	<span id="projectName"></span><input type="hidden" id="projectId" /><br/>
	<label>学校：</label>
	<input type="text" id="school" value="" /><br/>
	<label>年级：</label>
	<select id="grade"></select><br/>
	<label for="aidAmount">资助金额：</label>
	<input type="text" name="aidAmount" id="aidAmount">（每学期）<br/>
	<label for="aidStatus">资助进展：</label>
	<select name="aidStatus" id="aidStatus"></select><br/>
	<label for="aidType">资助类型：</label>
	<select name="aidType" id="aidType"></select><br/>
	<label for="pairStatus">募捐进展：</label>
	<select name="pairStatus" id="pairStatus"></select><br/>
	<label for="sponsorId">资助人：</label>
	<select name="sponsorId" id="sponsorId">
		<option value="0">无结对资助人</option>
	</select><br/>
	<label for="volunteerId">志愿者：</label>
	<select name="volunteerId" id="volunteerId">
		<option value="0">待定</option>
	</select><br/>
	<label for="remark">备注：</label>
	<input type="text" name="remark" id="remark" size="36"><br/>
</div>

<div id="exportDialog" title="助学跟踪信息导出" style="display:none;">
	<br/>
	导出已选择学期、项目的所有资助信息。除了了基本信息（例如学生性别、编号、学校、年级、资助人），还可以选择是否包含下列内容：<br/><br/>
	<input type="checkbox" name="exportOptions" value="studentContactInfo"/>学生联系方式<br/>
	<!-- <input type="checkbox" name="exportOptions" value="studentBankAccount"/>学生银行账号<br/> -->
	<input type="checkbox" name="exportOptions" value="sponsorContactInfo"/>资助人联系方式<br/>
	<input type="checkbox" name="exportOptions" value="feedbackProgress"/>助学反馈进展<br/>
</div>

<div id="batchDialog" title="批量操作" style="display: none;">
	<input type="hidden" id="aidIds"><br/>
	请选择对选中的记录执行哪项操作：<br/>
	<input type="radio" name="batchAction" value="batchTransferring"/>给学生的打款在进行中<br/>
	<input type="radio" name="batchAction" value="batchFunded"/>给学生的打款已完成<br/>
	<input type="radio" name="batchAction" value="batchDonated"/>资助人已捐款到小石头募捐账户<br/>
	<input type="radio" name="batchAction" value="batchReceiptReceived"/>学生收据已收到<br/>
	<input type="radio" name="batchAction" value="batchReceiptFeedback"/>学生收据已反馈给资助人<br/>
	<input type="radio" name="batchAction" value="batchSummaryReceived"/>学期小结已收到<br/>
	<input type="radio" name="batchAction" value="batchSummaryFeedback"/>学期小结已反馈给资助人<br/>
</div>

<%@ include file="_aid_list_project_smester_selector.jsp" %>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/aid/aid_list_overall.js"></script>

</div>
</div>
<%@ include file="../common/_page_footer.jsp" %>
</body>
</html>